#ifndef __ADDRESS_H_
#define __ADDRESS_H_
#include<arpa/inet.h>
#include<string>
#include<string.h>

using std::string;
#define _default_port 8022
#define _default_ip "0.0.0.0"

namespace SC
{
    class Address
    {
    public:
        Address(const string& ip);
        Address(unsigned short);
        Address(const string& ip, unsigned short port);
        Address(const sockaddr_in& addr);

        sockaddr_in* getAddr();
        string getIP() const;
        unsigned short getPort() const;
    
    private:
        sockaddr_in _addr;

    };
}

#endif